package com.reverie.plugins.gaode.client;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Query;
import com.reverie.plugins.gaode.dto.GaoDeResponse;

@BaseRequest(
        baseURL = "https://restapi.amap.com/v3",     // 默认域名
        headers = {
                "Accept:*/*",
                "Content-Type:application/json;charset=UTF-8"
        },
        sslProtocol = "TLS"                    // 默认单向SSL协议
)
public interface GaoDeClient {

    @Get("geocode/geo?key=06e039033192bf8436598ea69f7b2b30")
    GaoDeResponse getLocation(@Query("city") String city, @Query("address") String address);

}
